New function to make sure that the weights sum up to the correct total
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 15 Feb 2002 21:11:25 +0000 (21:11 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 15 Feb 2002 21:11:25 +0000 (21:11 +0000)
commitbc90028d8dc30b1f3be77d66986e6e445b37e8e8
tree571ac75c8ceb54bbcbd5e183064394287d788738
parentdbe4dbe8e921013769f8aef04a703219fe9da0e1
New function to make sure that the weights sum up to the correct total

* pixops/pixops.c (correct_total): New function to make sure
that the weights sum up to the correct total without introducing
negative weights.
(tile_make_weights, bilinear_make_fast_weights,
bilinear_make_weights): Use correct_total.
gdk-pixbuf/ChangeLog
gdk-pixbuf/pixops/pixops.c